package com.yu.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yu.common.utils.PageUtils;
import com.yu.gulimall.product.entity.AttrEntity;
import com.yu.gulimall.product.entity.AttrGroupEntity;
import com.yu.gulimall.product.vo.AttrGroupWithAttrVO;
import com.yu.gulimall.product.vo.AttrVo;
import com.yu.gulimall.product.vo.RelationVO;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author yu
 * @email yu@gmail.com
 * @date 2024-02-27 14:44:07
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);


    PageUtils getGroupWithCatelogId(Long catelogId, Map<String, Object> params);

    Long[] findParentPath(Long catelogId);

    List<AttrEntity> getRelationByAttrgroupId(Long attrgroupId);

    void deleteWithId(AttrVo[] params);

    PageUtils getOtherRelationByAttrgroupId(Long attrgroupId, Map<String, Object> params);

    void addAttrRelation(RelationVO[] relationVOList);

    List<AttrGroupWithAttrVO> getAttrgroupWithAttr(Long catelogId);
}

